# 怎样实现学生成绩排序（以成绩为准）

stu_grade = [
    {"sno": 90, "grade": 90, "sname": "小张"},
    {"sno": 101, "grade": 88, "sname": "小张"},
    {"sno": 102, "grade": 80, "sname": "小张"},
    {"sno": 110, "grade": 60, "sname": "小张"}
]

# 网页给的
stu_grade_sort = sorted(stu_grade, key=lambda x: x["grade"])
print(stu_grade_sort)







